home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / 8bit / cislib_a / bgfile.doc < prev    next >
Text File  |  1995-04-22  |  3KB  |  1 lines

  1. There have been some people who are interested in creating B/GRAPH files directly from their own basic programs rather than converting ASCII files. The following is the makeup of a B/GRAPH file.. Number of factors. This is an integer value between 1 and 3 for the basic B/G disk and 1 to 8 for the enhancement disk programs.. TOP TITLE. a character string for the top title.. 0  (yep a zero). SUBTITLE. 0 (another one). SIDE TITLE. that is the one along the Y axis.. Starting month. For graphs measured in months it is a 3 character name such as "JAN". For other graph types a space " " can be used.. NUMBER OF ELEMENTS in each data factor. Starting location of the starting month in the vector of months. for "JAN" the number is 1. For "FEB" it is 4 etc. for non month data simply set it to 1.. color. try 0 initially.. code to determine whether to use integers or decimals in displaying numbers on the data screen. a value of 1 means use decimals. A 0 means do not. In actuality if the numbers are decimals they will be kept as decimals. This code only determines the display attribute. If you then alter the data it will be set to 1 if there are fractions present.. HUE. Set to 0 normally. It is the luminousity of the background color.. Brightness. This is the luminousity of the foreground . Try 12 for starters.. For data which is of a monthly nature it is the following string "JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC". For yearly data it should be set to "78". If data is in units set it to "1 ".. The smallest data value.. Bar chart code. 1 if a bar chart. 0 if not a bar chart.. the actual data elements. The order is all of factor 1 then factor 2 etc.. The graph number if any as a string. An empty vector may be used if none is desired.. 0. label for the X-axis. For monthly data it should be " ". For yearly data "year" is a good choice. . a code for lines. 1 means that lines should be drawn. 0 means none.. the interval between points in the series. It must be a positive integer. A 0 will be taken as a 1.. Code for a point graph. If 0 then the points are put on the screen. If 1 then they are not. A code for market graphs. A 1 means yes. A 0 means no. . The biggest value in the file.. The starting year or period in the graph. For monthly graphs make it 0. A 24 element character string. Each 8 elements give the label for a data factor. When used with the enhancement disk it may be 56 elements long Note that only these 2 sizes should be used. B/G itself will never generate any other values so it may not be foolproof if other lengths are used.. A code for whether the dollar signs are to be placed along the Y axis. A 1 means yes a 0 means no.. A code for stacked bar charts. A 1 means yes a 2 means no.. A 144 character long string. This is used by the pie chart program as the labels for the pie segments. There are 16 possibe segments and 8 characters for each. This variable does not have to be in the file as the program will make allowances for it's absence.That is it. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++